package com.dangdang.digital.service;
import javax.annotation.Resource;

import org.springframework.core.task.TaskExecutor;
import org.springframework.stereotype.Service;

import com.dangdang.digital.dao.ICommonDao;
import com.dangdang.digital.model.IMUser;
@Service("testService")
public class TestService {
	@Resource
	private ICommonService commonService;
	
	@Resource 
	private ICommonDao  commonDao;
	
	@Resource 
	private TaskExecutor task;
	
	public void test(){
		IMUser user = new IMUser();
		user.setCustId(11111111L);
		user.setImAccount("11111");
		commonDao.save(user);
		System.out.println("*******"+commonDao.get(2,IMUser.class));
		System.out.println("*******"+commonService.get(1,IMUser.class));
		// TODO Auto-generated method stub
//		System.out.println("IMUser1="+commonService.get(1));
		// TODO Auto-generated method stub
		
	}
}
